import http from './http'
import {
  $get,
  $post
} from './api'
// import {
//   promisifyAll
// } from 'miniprogram-api-promise';
import $cache from './cache.js'

function init() {
  const wxp = {}
  // promisifyAll(wx, wxp)
  wx.wxp = wxp
  wx.$http = http

  wx.$get = $get
  wx.$post = $post
  wx.$cache = $cache
}
export default init